package txt1;

/**
 * 自定义异常
 */
public class MyException implements AutoCloseable{
    @Override
    public void close() throws Exception {
        System.out.println("调用close方法释放资源");
    }
}
